package com.ruoyi.project.relation.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.alibaba.fastjson.annotation.JSONField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 物料清单关联对象 business_relation
 *
 * @author wb
 * @date 2021-03-28
 */
public class BusinessRelationEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String TABLE_NAME = "business_relation";

    /** 主键 */
    private Long businessRelationId;

    /** 来源业务ID */
    @Excel(name = "来源业务ID")
    private Long sourceOwnerId;

    /** 所属业务名称 */
    @Excel(name = "所属业务名称")
    private String sourceOwnerName;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String sourceOwnerType;

    /** 业务对应的ID */
    @Excel(name = "业务对应的ID")
    private Long targetOwnerId;

    /** 业务名称 */
    @Excel(name = "业务名称")
    private String targetOwnerName;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String targetOwnerType;

    /** 删除标志（0代表存在 1代表删除） */
    private Integer delFlag;

    public void setBusinessRelationId(Long businessRelationId)
    {
        this.businessRelationId = businessRelationId;
    }

    public Long getBusinessRelationId()
    {
        return businessRelationId;
    }
    public void setSourceOwnerId(Long sourceOwnerId)
    {
        this.sourceOwnerId = sourceOwnerId;
    }

    public Long getSourceOwnerId()
    {
        return sourceOwnerId;
    }
    public void setSourceOwnerName(String sourceOwnerName)
    {
        this.sourceOwnerName = sourceOwnerName;
    }

    public String getSourceOwnerName()
    {
        return sourceOwnerName;
    }
    public void setSourceOwnerType(String sourceOwnerType)
    {
        this.sourceOwnerType = sourceOwnerType;
    }

    public String getSourceOwnerType()
    {
        return sourceOwnerType;
    }
    public void setTargetOwnerId(Long targetOwnerId)
    {
        this.targetOwnerId = targetOwnerId;
    }

    public Long getTargetOwnerId()
    {
        return targetOwnerId;
    }
    public void setTargetOwnerName(String targetOwnerName)
    {
        this.targetOwnerName = targetOwnerName;
    }

    public String getTargetOwnerName()
    {
        return targetOwnerName;
    }
    public void setTargetOwnerType(String targetOwnerType)
    {
        this.targetOwnerType = targetOwnerType;
    }

    public String getTargetOwnerType()
    {
        return targetOwnerType;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    public ToStringBuilder toStringBuilder(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("businessRelationId", getBusinessRelationId())
                .append("sourceOwnerId", getSourceOwnerId())
                .append("sourceOwnerName", getSourceOwnerName())
                .append("sourceOwnerType", getSourceOwnerType())
                .append("targetOwnerId", getTargetOwnerId())
                .append("targetOwnerName", getTargetOwnerName())
                .append("targetOwnerType", getTargetOwnerType())
                .append("createUserId", getCreateUserId())
                .append("createTime", getCreateTime())
                .append("delFlag", getDelFlag())
                .append("updateUserId", getUpdateUserId())
                .append("updateTime", getUpdateTime())
                ;
    }


    @Override
    public String toString() {
        return toStringBuilder().toString();
    }
}
